﻿#pragma once


// CCheckElementLibraryDialog 对话框

#include "ElementSplitterWnd.h"

#include "ElementListView.h"
#include "ElementTreeView.h"

class CCheckElementLibraryDialog : public CDialogEx
{
	DECLARE_DYNAMIC(CCheckElementLibraryDialog)

protected:
	CMFCToolBar m_wndToolBar;

	CFrameWnd*	 m_pFrameWnd;
	CElementSplitterWnd m_wndSplitter;
	
protected:
	/**
	 * 初始化质量元素TreeView
	 */
	void	PopulateElementTree();

	void	AdjustLayout();

public:
	CCheckElementLibraryDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CCheckElementLibraryDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_CHECK_ELEMENT_LIBRARY };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
	afx_msg void OnCheckElementNew();
	afx_msg void OnCheckElementRemove();
	afx_msg void OnCheckSubElementNew();
	afx_msg void OnCheckSubElementRemove();
	afx_msg void OnCheckItemNew();
	afx_msg void OnCheckItemRemove();
public:
	virtual BOOL OnInitDialog();
	//CElementTreeCtrl m_tree;
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
};
